package com.xbongbong.pro.index.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @description: 隐藏首页看板
 * @Author: hongxiao
 * @date: 2019-02-27 09:30
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class IndexBoardHideDTO extends BaseDTO {
    private static final long serialVersionUID = 4931193143863591856L;
    /**
     * 首页看板id
     */
    @NotNull(message = "{dto.msg.indexBoardHide.chartCategoryId.NotNull}")
    private Long chartCategoryId;
    /**
     * 首页看板类型 1web左侧看板，2web右侧看板， 3app看板
     */
    private Integer boardType;
    /**
     * 1分类id，2图表id
     */
    @NotNull(message = "{dto.msg.indexBoardHide.chartCategoryType.NotNull}")
    @Min(value = 1, message = "{dto.msg.indexBoardHide.chartCategoryType.Min}")
    @Max(value = 2, message = "{dto.msg.indexBoardHide.chartCategoryType.Max}")
    private Integer chartCategoryType;
}
